how to hide html controls using jQuery
how to hide html controls using jQuery
1057
18-Jun-2018
Prakash nidhi Verma
18-Jun-2018Hide elements for Jquery:
Hide function using by two types :
1.hide() - Using the speed parameter
2.hide() - Using the callback parameter
Syntax --// Hide all <X> elements :
$("button").click(function(){
$("X").hide();
});
you can use ready and click function with using CSS:
Example :
$(document).ready(function () {$("#btn_Add").click(function () {
$("#TextBox2").css({ "background-color": "your choice", "font-size": "100%" });
$("#TextBox1").css('visibility', 'hidden');
});
});
I hope, It will useful for you .
Happy Coding :)